import { request } from '../utils/request'

export function drugList(params) {
    return request({
        method: 'post',
        url: 'medical/getList',
        data: params,
    })
}

export function saleList(){
    return request({
        method:'get',
        url:'medical/getSaleList'
        })
}

export function uploadImg(params){
    return request({
        method:'post',
        url:'medical/upload',
        data:params
    })
}

export function addDrug(params){
    return request({
        method:'post',
        url:'medical/add',
        data:params,
        headers:{
            'contentType': 'application/x-www-form-urlencoded; charset=UTF-8',
            'token':window.localStorage.token
        }
    })
}
